<html>
<head><meta charset="utf-8"><title>PlaceBase change · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/PlaceBase.20change.html">PlaceBase change</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="185726454"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/PlaceBase%20change/near/185726454" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/PlaceBase.20change.html#185726454">(Jan 15 2020 at 18:13)</a>:</h4>
<p>I am staring at this compilation failure in Miri:</p>
<div class="codehilite"><pre><span></span>error[E0433]: failed to resolve: could not find `PlaceBase` in `mir`
  --&gt; src/helpers.rs:79:45
   |
79 |         let place = mir::Place { base: mir::PlaceBase::Local(local), projection: List::empty() };
   |                                             ^^^^^^^^^ could not find `PlaceBase` in `mir`

error[E0560]: struct `rustc::mir::Place&lt;&#39;_&gt;` has no field named `base`
  --&gt; src/helpers.rs:79:34
   |
79 |         let place = mir::Place { base: mir::PlaceBase::Local(local), projection: List::empty() };
   |                                  ^^^^ `rustc::mir::Place&lt;&#39;_&gt;` does not have this field
   |
   = note: available fields are: `local`, `projection`
</pre></div>


<p>I am trying to find out what I have to change... does anyone know the PR that did this off the top of their head?</p>



<a name="185726584"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/PlaceBase%20change/near/185726584" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/PlaceBase.20change.html#185726584">(Jan 15 2020 at 18:14)</a>:</h4>
<p>ah, it's <a href="https://github.com/rust-lang/rust/pull/67000" target="_blank" title="https://github.com/rust-lang/rust/pull/67000">https://github.com/rust-lang/rust/pull/67000</a></p>



<a name="185727215"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/PlaceBase%20change/near/185727215" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/PlaceBase.20change.html#185727215">(Jan 15 2020 at 18:20)</a>:</h4>
<p><code>PlaceBase</code> doesn't exist any more because the base of a <code>Place</code> is now always a <code>Local</code>. So you just need to change <code>base: mir::PlaceBase::Local(local)</code> to <code>local</code></p>



<a name="185747363"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/PlaceBase%20change/near/185747363" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/PlaceBase.20change.html#185747363">(Jan 15 2020 at 21:41)</a>:</h4>
<p><span class="user-mention" data-user-id="120791">@RalfJ</span> have you fixed this already? if you didn’t I can go over this</p>



<a name="185749833"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/PlaceBase%20change/near/185749833" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/PlaceBase.20change.html#185749833">(Jan 15 2020 at 22:10)</a>:</h4>
<p><span class="user-mention" data-user-id="116266">@Santiago Pastorino</span> thanks, it's all fixed :)</p>



<a name="185751764"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/PlaceBase%20change/near/185751764" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/PlaceBase.20change.html#185751764">(Jan 15 2020 at 22:34)</a>:</h4>
<p><span aria-label="+1" class="emoji emoji-1f44d" role="img" title="+1">:+1:</span>, it was merged meanwhile I’m on vacations 😊</p>



<a name="185751777"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/PlaceBase%20change/near/185751777" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/PlaceBase.20change.html#185751777">(Jan 15 2020 at 22:34)</a>:</h4>
<p>will check if others crates broke too</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>